Ext.define('DCApp.view.bsseauthor.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.baseauthorlist',
    
    requires: [
        'DCApp.controller.ListController',
        'DCApp.view.baseauthor.ListModel'
    ],

    // Connects to our View Controller (Ticket.view.ticket.SearchController) and View Model
    // (Ticket.view.ticket.SearchModel).
    controller: 'list',
    plugins: ['gfilters'],
    viewModel: {
        type: 'baseauthorlist'
    },
    bind: {
        store: '{objs}'
    },
    header:false,
    //height: 350,
    title: 'Array Grid',

    selType: 'checkboxmodel',
    
    tbar: ['->',{
        text: '录入',
        handler: 'onNew'
    }],
    
	
	listeners: {
        itemdblclick: 'onDblClick'
    },
    
    columns: [
            {
                text     : '编号',
                dataIndex: 'id',
                filter: 'number'
            },
            {
                text     : '姓名',
                dataIndex: 'name',
                width:300,
                filter: {
                    type: 'string',
                    itemDefaults: {
                        emptyText: 'Search for...'
                    }
                }
            },
            {
                text     : '单位',
                dataIndex: 'corp',
                width:300,
                filter: {
                    type: 'string',
                    itemDefaults: {
                        emptyText: 'Search for...'
                    }
                }
            },
            {
                text     : '身份证',
                dataIndex: 'identityCard',
                width:300,
                filter: {
                    type: 'string',
                    itemDefaults: {
                        emptyText: 'Search for...'
                    }
                }
            }
        ],
    initComponent: function(){    	
    	this.callParent();
    }
 });
